<?php

namespace app\common\model;

/**
 * 订单模型
 */
class Recharge extends BaseModel
{
    protected $name = 'recharge';

    /**
     * 关联用户表
     */
    public function plan()
    {
        return $this->belongsTo('RechargePlan');
    }

    /**
     * 订单详情
     */
    public static function detail($recharge_id)
    {
        return self::get($recharge_id, ['plan']);
    }
	
}
